<?php


/**
 * Notes:
 * PROJECT_NAME : ERP v1.8 重构erp
 * User: 夏鱼儿<397072174@qq.com>
 * Date: 2024/1/6
 * Time: 9:30
 */

namespace app\admin\traits\model;

use app\admin\model\Goods;
use app\api\model\User;
use think\model\relation\BelongsTo;

trait Line
{

    /**
     * 关联商品信息
     * @return BelongsTo
     */
    public function goods(): BelongsTo
    {
        return $this->belongsTo(Goods::class);
    }

    /**
     * 关联用户信息
     * @return BelongsTo
     */
    public function user(): BelongsTo
    {
        return $this->belongsTo(User::class);
    }

}